package ute.mvc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ute.mvc.dao.FileDAO;
import ute.mvc.model.MyFile;

@Service("fileService")
public class FileServiceImpl implements FileService{
	
	@Autowired
	FileDAO fileDAO;
	
	public MyFile getFileByFileId(int fileId) {
		return fileDAO.getFileByFileId(fileId);
	}

	public void addFile(MyFile file) {
		fileDAO.addFile(file);
	}

	public void updateFile(MyFile file) {
		fileDAO.updateFile(file);
	}

	public void deleteFile(MyFile file) {
		fileDAO.deleteFile(file);
	}

}
